package pers.vic.test.some.winsky.winto;

/**
 * 部级监管平台的请求URL
 * @author VIC
 *
 */
public enum NcopenuUrlEnum {
	
	//公司
	A4("公司基本信息","/baseinfo/company","baseInfoCompany", true, false),//有文件
	A6("公司运营规模信息","/baseinfo/companystat","baseInfoCompanyStat",false, false),
	A8("公司支付信息","/baseinfo/companypay","baseInfoCompanyPay",false, false),
	A10("公司服务机构","/baseinfo/companyservice","baseInfoCompanyService",false, false),
	A12("公司经营许可","/baseinfo/companypermit","baseInfoCompanyPermit",false, false),
	A14("公司运价信息","/baseinfo/companyfare","baseInfoCompanyFare",false, false),
	
	
	//车辆
	A16("车辆基本信息","/baseinfo/vehicle","baseInfoVehicle", true),//有文件
	A18("车辆保险信息","/baseinfo/vehicleinsurance","baseInfoVehicleInsurance"),
	A20("车辆里程信息","/baseinfo/vehicletotalmile","baseInfoVehicleTotalMile"),
	
	//驾驶员
	A22("驾驶员基本信息","/baseinfo/driver","baseInfoDriver", true),//有文件
	A24("驾驶员培训信息","/baseinfo/drivereducate","baseInfoDriverEducate"),
	A26("驾驶员移动终端信息","/baseinfo/driverapp","baseInfoDriverApp"),
	A28("驾驶员统计信息","/baseinfo/driverstat","baseInfoDriverStat"),
	
	A30("乘客基本信息","/baseinfo/passenger","baseInfoPassenger"),
	A32("订单发起","/order/create","orderCreate"),
	A34("订单成功","/order/match","orderMatch"),
	A36("订单撤销","/order/cancel","orderCancel"),
	
	A38("车辆经营上线","/operate/login","operateLogin"),
	A40("车辆经营下线","/operate/logout","operateLogout"),
	A42("经营出发","/operate/depart","operateDepart"),
	A44("经营到达","/operate/arrive","operateArrive"),
	A46("经营支付","/operate/pay","operatePay"),

	A48("驾驶员定位信息","/position/driver","positionDriver"),
	A50("车辆定位信息息","/position/vehicle","positionVehicle"),
	
	A52("乘客评价信息","/rated/passenger","ratedPassenger"),
	A54("乘客投诉信息","/rated/passengercomplaint","ratedPassengerComplaint"),
	A56("驾驶员处罚信息","/rated/driverpunish","ratedDriverPunish"),
	A58("驾驶员信誉信息","/rated/driver","ratedDriver"),
	;
	
	
	public static void main(String[] args) {
		System.out.println(A14);
	}
	

	@Override
	public String toString() {
		return "{" + super.toString() + ",接口名称=" + this.name + ", URL=" +url + ", 业务代码=" + iPCType + ", 是否批量发送=" + batch + " }";
	}




	private NcopenuUrlEnum(String name, String url, String iPCType) {
		this.name = name;
		this.url = url;
		this.iPCType = iPCType;
		this.hasFile = false;
		this.batch = true;
	}
	
	private NcopenuUrlEnum(String name, String url, String iPCType, boolean hasFile) {
		this.name = name;
		this.url = url;
		this.iPCType = iPCType;
		this.hasFile = hasFile;
		this.batch = true;
	}
	
	private NcopenuUrlEnum(String name, String url, String iPCType, boolean hasFile, boolean bacth) {
		this.name = name;
		this.url = url;
		this.iPCType = iPCType;
		this.hasFile = hasFile;
		this.batch = bacth;
	}

	/**
	 * 接口名称
	 */
	private String name;
	
	/**
	 * 请求URL
	 */
	private String url;
	
	/**
	 * 业务接口代码
	 */
	private String iPCType;
	/**
	 * 本接口是否包含文件
	 */
	private boolean hasFile;
	
	/**
	 * 是否需要批量发送 测试是用  默认 true
	 */
	public boolean batch;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getiPCType() {
		return iPCType;
	}

	public void setiPCType(String iPCType) {
		this.iPCType = iPCType;
	}

	public boolean isHasFile() {
		return hasFile;
	}

	public void setHasFile(boolean hasFile) {
		this.hasFile = hasFile;
	}


	public boolean isBatch() {
		return batch;
	}


	public void setBatch(boolean batch) {
		this.batch = batch;
	}
	
	

	
	
	
}
